﻿using Acb.Core.Domain.Entities;
using Acb.Core.Serialize;
using System;

namespace OAuth.Server.Domain.Entities
{
    /// <summary> 资源表 </summary>
    [Naming("t_resource")]
    public class TResource : BaseEntity<Guid>
    {
        /// <summary> 名称 </summary>
        public string Name { get; set; }

        /// <summary> 标题 </summary>
        public string Title { get; set; }

        /// <summary> 描述 </summary>
        public string Description { get; set; }

        /// <summary> 是否可用 </summary>
        public bool Enabled { get; set; }

        /// <summary> 是否必须 </summary>
        public bool Required { get; set; }

        /// <summary> 是否强调 </summary>
        public bool Emphasize { get; set; }

        /// <summary> 是否文档中显示 </summary>
        public bool ShowInDiscoveryDocument { get; set; }

        /// <summary> 资源类型 </summary>
        public byte Type { get; set; }

        /// <summary> 资源声明 </summary>
        public string Claims { get; set; }
    }
}
